#define _CRT_SECURE_NO_WARNINGS 1
#include"Dlist.h"
void Test1()
{
	LTNode* plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);
	ListPopBack(plist);
	ListPrint(plist);
	ListPushFront(plist, 10);
	ListPushFront(plist, 20);
	ListPrint(plist);
	ListPopFront(plist);
	ListPrint(plist);
	LTNode* cur = ListFind(plist, 2);
	ListErase(cur);
	ListPrint(plist);
	cur = ListFind(plist, 10);
	ListInsert(cur,100);
	ListPrint(plist);
	ListDestory(plist);
	plist = NULL;
}

int main()
{
	Test1();
}